package com.jkgh.remedium.rsgen;

import java.io.File;
import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import org.xml.sax.SAXException;

import com.jkgh.remedium.rsgen.generator.doc.RemediumSystemDocGenerator;
import com.jkgh.remedium.rsgen.generator.flash.RemediumSystemFlashGenerator;
import com.jkgh.remedium.rsgen.generator.java.RemediumSystemJavaGenerator;
import com.jkgh.remedium.rsgen.parser.RemediumSystemParser;
import com.jkgh.remedium.rsgen.vo.RemediumSystem;

public class Main {

	public static void main(String[] args) throws ParserConfigurationException, IOException, SAXException {

		File xmlFile = new File("C:\\Users\\jakrawcz\\TNH\\trunk\\RS\\TNHrs.xml");

		RemediumSystem rs = RemediumSystemParser.parse(xmlFile);

		RemediumSystemJavaGenerator.generate(new File("C:\\Users\\jakrawcz\\TNH\\trunk\\sources\\java\\remedium-server-test"), rs);
		RemediumSystemFlashGenerator.generate(new File("C:\\Users\\jakrawcz\\TNH\\trunk\\sources\\flash\\remedium-client-test"), rs);
		RemediumSystemDocGenerator.generate(new File("C:\\Users\\jakrawcz\\TNH\\trunk\\RS\\doc"), rs);
	}

}
